package com.woniu.outlet.mysql.po;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class DailyIncomeMySQLExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DailyIncomeMySQLExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIncomeIdIsNull() {
            addCriterion("income_id is null");
            return (Criteria) this;
        }

        public Criteria andIncomeIdIsNotNull() {
            addCriterion("income_id is not null");
            return (Criteria) this;
        }

        public Criteria andIncomeIdEqualTo(Long value) {
            addCriterion("income_id =", value, "incomeId");
            return (Criteria) this;
        }

        public Criteria andIncomeIdNotEqualTo(Long value) {
            addCriterion("income_id <>", value, "incomeId");
            return (Criteria) this;
        }

        public Criteria andIncomeIdGreaterThan(Long value) {
            addCriterion("income_id >", value, "incomeId");
            return (Criteria) this;
        }

        public Criteria andIncomeIdGreaterThanOrEqualTo(Long value) {
            addCriterion("income_id >=", value, "incomeId");
            return (Criteria) this;
        }

        public Criteria andIncomeIdLessThan(Long value) {
            addCriterion("income_id <", value, "incomeId");
            return (Criteria) this;
        }

        public Criteria andIncomeIdLessThanOrEqualTo(Long value) {
            addCriterion("income_id <=", value, "incomeId");
            return (Criteria) this;
        }

        public Criteria andIncomeIdIn(List<Long> values) {
            addCriterion("income_id in", values, "incomeId");
            return (Criteria) this;
        }

        public Criteria andIncomeIdNotIn(List<Long> values) {
            addCriterion("income_id not in", values, "incomeId");
            return (Criteria) this;
        }

        public Criteria andIncomeIdBetween(Long value1, Long value2) {
            addCriterion("income_id between", value1, value2, "incomeId");
            return (Criteria) this;
        }

        public Criteria andIncomeIdNotBetween(Long value1, Long value2) {
            addCriterion("income_id not between", value1, value2, "incomeId");
            return (Criteria) this;
        }

        public Criteria andTodayDateIsNull() {
            addCriterion("today_date is null");
            return (Criteria) this;
        }

        public Criteria andTodayDateIsNotNull() {
            addCriterion("today_date is not null");
            return (Criteria) this;
        }

        public Criteria andTodayDateEqualTo(String value) {
            addCriterion("today_date =", value, "todayDate");
            return (Criteria) this;
        }

        public Criteria andTodayDateNotEqualTo(String value) {
            addCriterion("today_date <>", value, "todayDate");
            return (Criteria) this;
        }

        public Criteria andTodayDateGreaterThan(String value) {
            addCriterion("today_date >", value, "todayDate");
            return (Criteria) this;
        }

        public Criteria andTodayDateGreaterThanOrEqualTo(String value) {
            addCriterion("today_date >=", value, "todayDate");
            return (Criteria) this;
        }

        public Criteria andTodayDateLessThan(String value) {
            addCriterion("today_date <", value, "todayDate");
            return (Criteria) this;
        }

        public Criteria andTodayDateLessThanOrEqualTo(String value) {
            addCriterion("today_date <=", value, "todayDate");
            return (Criteria) this;
        }

        public Criteria andTodayDateLike(String value) {
            addCriterion("today_date like", value, "todayDate");
            return (Criteria) this;
        }

        public Criteria andTodayDateNotLike(String value) {
            addCriterion("today_date not like", value, "todayDate");
            return (Criteria) this;
        }

        public Criteria andTodayDateIn(List<String> values) {
            addCriterion("today_date in", values, "todayDate");
            return (Criteria) this;
        }

        public Criteria andTodayDateNotIn(List<String> values) {
            addCriterion("today_date not in", values, "todayDate");
            return (Criteria) this;
        }

        public Criteria andTodayDateBetween(String value1, String value2) {
            addCriterion("today_date between", value1, value2, "todayDate");
            return (Criteria) this;
        }

        public Criteria andTodayDateNotBetween(String value1, String value2) {
            addCriterion("today_date not between", value1, value2, "todayDate");
            return (Criteria) this;
        }

        public Criteria andCodeIdIsNull() {
            addCriterion("code_id is null");
            return (Criteria) this;
        }

        public Criteria andCodeIdIsNotNull() {
            addCriterion("code_id is not null");
            return (Criteria) this;
        }

        public Criteria andCodeIdEqualTo(String value) {
            addCriterion("code_id =", value, "codeId");
            return (Criteria) this;
        }

        public Criteria andCodeIdNotEqualTo(String value) {
            addCriterion("code_id <>", value, "codeId");
            return (Criteria) this;
        }

        public Criteria andCodeIdGreaterThan(String value) {
            addCriterion("code_id >", value, "codeId");
            return (Criteria) this;
        }

        public Criteria andCodeIdGreaterThanOrEqualTo(String value) {
            addCriterion("code_id >=", value, "codeId");
            return (Criteria) this;
        }

        public Criteria andCodeIdLessThan(String value) {
            addCriterion("code_id <", value, "codeId");
            return (Criteria) this;
        }

        public Criteria andCodeIdLessThanOrEqualTo(String value) {
            addCriterion("code_id <=", value, "codeId");
            return (Criteria) this;
        }

        public Criteria andCodeIdLike(String value) {
            addCriterion("code_id like", value, "codeId");
            return (Criteria) this;
        }

        public Criteria andCodeIdNotLike(String value) {
            addCriterion("code_id not like", value, "codeId");
            return (Criteria) this;
        }

        public Criteria andCodeIdIn(List<String> values) {
            addCriterion("code_id in", values, "codeId");
            return (Criteria) this;
        }

        public Criteria andCodeIdNotIn(List<String> values) {
            addCriterion("code_id not in", values, "codeId");
            return (Criteria) this;
        }

        public Criteria andCodeIdBetween(String value1, String value2) {
            addCriterion("code_id between", value1, value2, "codeId");
            return (Criteria) this;
        }

        public Criteria andCodeIdNotBetween(String value1, String value2) {
            addCriterion("code_id not between", value1, value2, "codeId");
            return (Criteria) this;
        }

        public Criteria andYesterdayValuationIsNull() {
            addCriterion("yesterday_valuation is null");
            return (Criteria) this;
        }

        public Criteria andYesterdayValuationIsNotNull() {
            addCriterion("yesterday_valuation is not null");
            return (Criteria) this;
        }

        public Criteria andYesterdayValuationEqualTo(BigDecimal value) {
            addCriterion("yesterday_valuation =", value, "yesterdayValuation");
            return (Criteria) this;
        }

        public Criteria andYesterdayValuationNotEqualTo(BigDecimal value) {
            addCriterion("yesterday_valuation <>", value, "yesterdayValuation");
            return (Criteria) this;
        }

        public Criteria andYesterdayValuationGreaterThan(BigDecimal value) {
            addCriterion("yesterday_valuation >", value, "yesterdayValuation");
            return (Criteria) this;
        }

        public Criteria andYesterdayValuationGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("yesterday_valuation >=", value, "yesterdayValuation");
            return (Criteria) this;
        }

        public Criteria andYesterdayValuationLessThan(BigDecimal value) {
            addCriterion("yesterday_valuation <", value, "yesterdayValuation");
            return (Criteria) this;
        }

        public Criteria andYesterdayValuationLessThanOrEqualTo(BigDecimal value) {
            addCriterion("yesterday_valuation <=", value, "yesterdayValuation");
            return (Criteria) this;
        }

        public Criteria andYesterdayValuationIn(List<BigDecimal> values) {
            addCriterion("yesterday_valuation in", values, "yesterdayValuation");
            return (Criteria) this;
        }

        public Criteria andYesterdayValuationNotIn(List<BigDecimal> values) {
            addCriterion("yesterday_valuation not in", values, "yesterdayValuation");
            return (Criteria) this;
        }

        public Criteria andYesterdayValuationBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("yesterday_valuation between", value1, value2, "yesterdayValuation");
            return (Criteria) this;
        }

        public Criteria andYesterdayValuationNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("yesterday_valuation not between", value1, value2, "yesterdayValuation");
            return (Criteria) this;
        }

        public Criteria andTodayValuationIsNull() {
            addCriterion("today_valuation is null");
            return (Criteria) this;
        }

        public Criteria andTodayValuationIsNotNull() {
            addCriterion("today_valuation is not null");
            return (Criteria) this;
        }

        public Criteria andTodayValuationEqualTo(BigDecimal value) {
            addCriterion("today_valuation =", value, "todayValuation");
            return (Criteria) this;
        }

        public Criteria andTodayValuationNotEqualTo(BigDecimal value) {
            addCriterion("today_valuation <>", value, "todayValuation");
            return (Criteria) this;
        }

        public Criteria andTodayValuationGreaterThan(BigDecimal value) {
            addCriterion("today_valuation >", value, "todayValuation");
            return (Criteria) this;
        }

        public Criteria andTodayValuationGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("today_valuation >=", value, "todayValuation");
            return (Criteria) this;
        }

        public Criteria andTodayValuationLessThan(BigDecimal value) {
            addCriterion("today_valuation <", value, "todayValuation");
            return (Criteria) this;
        }

        public Criteria andTodayValuationLessThanOrEqualTo(BigDecimal value) {
            addCriterion("today_valuation <=", value, "todayValuation");
            return (Criteria) this;
        }

        public Criteria andTodayValuationIn(List<BigDecimal> values) {
            addCriterion("today_valuation in", values, "todayValuation");
            return (Criteria) this;
        }

        public Criteria andTodayValuationNotIn(List<BigDecimal> values) {
            addCriterion("today_valuation not in", values, "todayValuation");
            return (Criteria) this;
        }

        public Criteria andTodayValuationBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("today_valuation between", value1, value2, "todayValuation");
            return (Criteria) this;
        }

        public Criteria andTodayValuationNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("today_valuation not between", value1, value2, "todayValuation");
            return (Criteria) this;
        }

        public Criteria andTodayIncomeIsNull() {
            addCriterion("today_income is null");
            return (Criteria) this;
        }

        public Criteria andTodayIncomeIsNotNull() {
            addCriterion("today_income is not null");
            return (Criteria) this;
        }

        public Criteria andTodayIncomeEqualTo(BigDecimal value) {
            addCriterion("today_income =", value, "todayIncome");
            return (Criteria) this;
        }

        public Criteria andTodayIncomeNotEqualTo(BigDecimal value) {
            addCriterion("today_income <>", value, "todayIncome");
            return (Criteria) this;
        }

        public Criteria andTodayIncomeGreaterThan(BigDecimal value) {
            addCriterion("today_income >", value, "todayIncome");
            return (Criteria) this;
        }

        public Criteria andTodayIncomeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("today_income >=", value, "todayIncome");
            return (Criteria) this;
        }

        public Criteria andTodayIncomeLessThan(BigDecimal value) {
            addCriterion("today_income <", value, "todayIncome");
            return (Criteria) this;
        }

        public Criteria andTodayIncomeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("today_income <=", value, "todayIncome");
            return (Criteria) this;
        }

        public Criteria andTodayIncomeIn(List<BigDecimal> values) {
            addCriterion("today_income in", values, "todayIncome");
            return (Criteria) this;
        }

        public Criteria andTodayIncomeNotIn(List<BigDecimal> values) {
            addCriterion("today_income not in", values, "todayIncome");
            return (Criteria) this;
        }

        public Criteria andTodayIncomeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("today_income between", value1, value2, "todayIncome");
            return (Criteria) this;
        }

        public Criteria andTodayIncomeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("today_income not between", value1, value2, "todayIncome");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}